package com.resurvolution.kingcloudmusicspringboot.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("songs")
public class SongsEntity {
    @TableId(type = IdType.AUTO, value = "song_id")
    private Integer id;
    private String name;
    @TableField("artist_id")
    private Integer artistId;
    @TableField("genre_id")
    private Integer genreId;
    @TableField("file_url")
    private String fileUrl;
    @TableField("created_at")
    private LocalDateTime createdAt;
    @TableField("tiny_img")
    private String tinyImg;
    @TableField("large_img")
    private String largeImg;
    private Integer count;
    private String lyric;
}
